package be.donovan.gui;


import be.donovan.gui.helper.MainFrame;
import be.donovan.gui.helper.ServiceLocator;
import be.donovan.gui.helper.components.AbstractController;
import be.donovan.gui.helper.components.DTOInterfacePanel;
import be.donovan.gui.invoice.InvoiceController;
import be.donovan.gui.invoice.InvoiceScreen;


public class ScreenController extends AbstractController<MainFrame>{

	public void openNewPersonScreen(){
		PersonScreen personScreen = new PersonScreen();
		personScreen.setController(new NewPersonController());
		personScreen.getController().start();
	}

	@Override
	public void initData() {
		
	}

	@Override
	public void initListeners() {
		
	}

	public void openAllPersonScreen() {
		DTOInterfacePanel panel = new DTOInterfacePanel();
		panel.setController(new AllPersonController());
		panel.getController().start();
		
	}

	public void openNewProductScreen() {
		ProductScreen productScreen = new ProductScreen();
		productScreen.setController(new NewProductController());
		productScreen.getController().start();
		
	}

	public void openAllProductsScreen() {
		DTOInterfacePanel panel = new DTOInterfacePanel();
		panel.setController(new AllProductsController());
		panel.getController().start();
		
	}

	public void openFaktuurScreen() {
		InvoiceScreen invoiceScreen = new InvoiceScreen();
		invoiceScreen.setController(new InvoiceController());
		invoiceScreen.getController().start();
	}

}
